package org.wlw.user2;


public class TestUser {
    public static void main(String[] args) {
        UserManager um = new UserManager();
        um.add(new User("admin","管理员","123","男",32));
        um.add(new User("admin1","管理员1","123","男",34));
        um.add(new User("caocao","曹操","232","男",65));
        um.add(new User("liubei","刘备","232","男",65));
        um.add(new User("sunquan","孙权","232","男",65));
        um.add(new User("daqiao","大乔","123123","女",32));
        um.update(new User("caocao","曹操","1999","男",63));
        um.delete("admin1");
        um.list();
        User tu = um.login("caocao","1999");
        if(tu!=null) {
            System.out.println("欢迎:"+tu.getNickname()+"使用我们的系统!");
        }
    }
}
